package cn.edu.sgu.www.mhxysy.easyui.component.impl;

import cn.edu.sgu.www.mhxysy.easyui.component.EasyuiComponent;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * easyui树形表格对象
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class TreeGrid<T> implements EasyuiComponent {

    @ApiModelProperty(value = "ID")
    private Serializable id;

    /**
     * 折叠状态 open/closed
     */
    @ApiModelProperty(value = "折叠状态")
    private String state;

    /**
     * 子树表格
     */
    @ApiModelProperty(value = "子树表格")
    private List<TreeGrid<T>> children;
}